import myAxios from '@/utils/request.js'
export function getUserListRequest (data) {
  return myAxios.request({
    url: '/user/getList/',
    method: 'post',
    data
  })
}

export function addUserRequest (data) {
  return myAxios.request({
    url: '/user/add/',
    method: 'post',
    data
  })
}

export function deleteUserRequest (data) {
  return myAxios.request({
    url: '/user/delete/',
    method: 'post',
    data
  })
}
export function editUserRequest (data) {
  return myAxios.request({
    url: '/user/edit/',
    method: 'post',
    data
  })
}
export function getRoleRequest (data) {
  return myAxios.request({
    url: '/role/',
    method: 'post',
    data
  })
}
